package com.buaa.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buaa.dao.UtilDao;
import com.buaa.utils.HibernateUtil;

@Repository
public class UtilDaoImpl implements UtilDao {

	@Autowired
	private HibernateUtil hibernateUtil;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Object> findAllCounty() {
		return hibernateUtil.findAllBySQL("SELECT name_simple FROM country order by pinyin", null);
	}

}
